package com.heima.admin.service.impl;

import com.heima.admin.service.ChannelService;
import com.heima.apis.wemedia.IWemdiaClient;
import com.heima.model.admin.dto.ChannelDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChannelServiceImpl implements ChannelService {

    @Autowired
    private IWemdiaClient client;

    @Override
    public ResponseResult channelDeleteC(Integer id) {
        return client.channelDeleteC(id);
    }

    @Override
    public ResponseResult pageFindC(ChannelDto dto) {
        return client.pageFindC(dto);
    }

    @Override
    public ResponseResult channelSaveC(WmChannel wmChannel) {
        return client.channelSaveC(wmChannel);
    }

    @Override
    public ResponseResult channelUpdateC(WmChannel wmChannel) {
        return client.channelUpdateC(wmChannel);
    }
}
